Termination Proof Script
Consider the TRS R consisting of the rewrite rules
|
| 1: |
|
0 + y |
→ y |
| 2: |
|
s(x) + y |
→ s(x + y) |
| 3: |
|
p(x) + y |
→ p(x + y) |
| 4: |
|
minus(0) |
→ 0 |
| 5: |
|
minus(s(x)) |
→ p(minus(x)) |
| 6: |
|
minus(p(x)) |
→ s(minus(x)) |
| 7: |
|
0 * y |
→ 0 |
| 8: |
|
s(x) * y |
→ (x * y) + y |
| 9: |
|
p(x) * y |
→ (x * y) + minus(y) |
|
There are 9 dependency pairs:
|
| 10: |
|
s(x) +# y |
→ x +# y |
| 11: |
|
p(x) +# y |
→ x +# y |
| 12: |
|
MINUS(s(x)) |
→ MINUS(x) |
| 13: |
|
MINUS(p(x)) |
→ MINUS(x) |
| 14: |
|
s(x) *# y |
→ (x * y) +# y |
| 15: |
|
s(x) *# y |
→ x *# y |
| 16: |
|
p(x) *# y |
→ (x * y) +# minus(y) |
| 17: |
|
p(x) *# y |
→ x *# y |
| 18: |
|
p(x) *# y |
→ MINUS(y) |
|
The approximated dependency graph contains 3 SCCs:
{10,11},
{12,13}
and {15,17}.
-
Consider the SCC {10,11}.
There are no usable rules.
By taking the AF π with
π(+#) = π(p) = 1 together with
the lexicographic path order with
empty precedence,
rule 11
is weakly decreasing and
rule 10
is strictly decreasing.
There is one new SCC.
-
Consider the SCC {11}.
By taking the AF π with
π(+#) = 1 together with
the lexicographic path order with
empty precedence,
rule 11
is strictly decreasing.
-
Consider the SCC {12,13}.
There are no usable rules.
By taking the AF π with
π(MINUS) = π(p) = 1 together with
the lexicographic path order with
empty precedence,
rule 13
is weakly decreasing and
rule 12
is strictly decreasing.
There is one new SCC.
-
Consider the SCC {13}.
By taking the AF π with
π(MINUS) = 1 together with
the lexicographic path order with
empty precedence,
rule 13
is strictly decreasing.
-
Consider the SCC {15,17}.
There are no usable rules.
By taking the AF π with
π(*#) = π(p) = 1 together with
the lexicographic path order with
empty precedence,
rule 17
is weakly decreasing and
rule 15
is strictly decreasing.
There is one new SCC.
-
Consider the SCC {17}.
By taking the AF π with
π(*#) = 1 together with
the lexicographic path order with
empty precedence,
rule 17
is strictly decreasing.
Hence the TRS is terminating.
Tyrolean Termination Tool (0.03 seconds)
--- May 4, 2006